import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {AssessPriceTemplateComponent} from './assess/assess-price-template/assess-price-template.component';
import {AssessPriceTemplateListComponent} from './assess/assess-price-template-list/assess-price-template-list.component';
import {AssessTypeManageListComponent} from './assess/assess-type-manage-list/assess-type-manage-list.component';
import {AssessTypeManageComponent} from './assess/assess-type-manage/assess-type-manage.component';

import {LoveBrandConfigComponent} from './love-brand-config/love-brand-config.component';
import {LoveSeriesConfigComponent} from './love-series-config/love-series-config.component';
import {LoveModelConfigComponent} from './love-model-config/love-model-config.component';
import {LoveClassSelectComponent} from './love-class-select/love-class-select.component';
import {LoveModelSelectComponent} from './love-model-select/love-model-select.component';
import {LoveModselectAddComponent} from './love-modselect-add/love-modselect-add.component';
import {LeavePageGuard} from './leave-page.guard';
import {LoveOrderManageComponent} from './love-order-manage/love-order-manage.component';
import {LoveOrderDetailsComponent} from './love-order-details/love-order-details.component';
import {InspectionMachineListComponent} from './inspection-machine-list/inspection-machine-list.component';
import {InspectedMachineComponent} from './inspected-machine/inspected-machine.component';
import {QuestionManageComponent} from './assess/question-manage/question-manage.component';
import {QuestionEditComponent} from './assess/question-edit/question-edit.component';
import {LoveHotSearchComponent} from './love-hot-search/love-hot-search.component';
import {InspectedMachineEditComponent} from './inspected-machine-edit/inspected-machine-edit.component';
import {LoveMakeupCouponComponent} from './recyc-market-manage/love-makeup-coupon/love-makeup-coupon.component';
import {LoveUserMakeupCouponComponent} from './recyc-market-manage/love-user-makeup-coupon/love-user-makeup-coupon.component';
import {LoveMakeupCouponEditComponent} from './recyc-market-manage/love-makeup-coupon-edit/love-makeup-coupon-edit.component';
import {LoveMakeupCouponDetailsComponent} from './recyc-market-manage/love-makeup-coupon-details/love-makeup-coupon-details.component';
import {LoveMakeupPromotionComponent} from './recyc-market-manage/love-makeup-promotion/love-makeup-promotion.component';
import {LoveMakeupPromotionEditComponent} from './recyc-market-manage/love-makeup-promotion-edit/love-makeup-promotion-edit.component';
import {LoveMakeupPromotionDetailsComponent} from './recyc-market-manage/love-makeup-promotion-details/love-makeup-promotion-details.component';
import {LoveMakeupRecordComponent} from './recyc-market-manage/love-makeup-record/love-makeup-record.component';
import {LoveMakeupAwardPrizesComponent} from './recyc-market-manage/love-makeup-award-prizes/love-makeup-award-prizes.component';
import { LoveLuckdrawListComponent } from './luck-draw-manage/love-luckdraw-list/love-luckdraw-list.component';
import { LoveLuckdrawEditComponent } from './luck-draw-manage/love-luckdraw-edit/love-luckdraw-edit.component';
import { LoveLuckdrawRecordComponent } from './luck-draw-manage/love-luckdraw-record/love-luckdraw-record.component';
import {ModelBasePriceEditComponent} from './basePrice/model-base-price-edit/model-base-price-edit.component';
import {ModelBasePriceComponent} from './basePrice/model-base-price/model-base-price.component';

import { LoveSendIdolListComponent } from './love-send-idol-manage/love-send-idol-list/love-send-idol-list.component';
import { LoveSendIdolEditComponent } from './love-send-idol-manage/love-send-idol-edit/love-send-idol-edit.component';
import { LoveSendIdolDetailsComponent } from './love-send-idol-manage/love-send-idol-details/love-send-idol-details.component';
import {RecycleGiveIdouComponent} from './recycle-give-idou/recycle-give-idou.component';

const routes: Routes = [
  {
    path: 'loveBrandConfig',
    component: LoveBrandConfigComponent,
    data: {breadcrumb: '品牌配置'}
  },
  {
    path: 'loveSeriesConfig',
    component: LoveSeriesConfigComponent,
    data: {breadcrumb: '系列配置'}
  },
  {
    path: 'loveModelConfig',
    component: LoveModelConfigComponent,
    data: {breadcrumb: '机型配置'}
  },
  {
    path: 'loveHotSearch',
    component: LoveHotSearchComponent,
    data: {breadcrumb: '热搜配置'}
  },
  {
    path: 'assessPriceQuestionList',
    component: QuestionManageComponent,
    data: {breadcrumb: '问题列表'},
  },
  {
    path: 'assessPriceQuestionEdit',
    component: QuestionEditComponent,
    data: {breadcrumb: '问题'},
    canDeactivate: [LeavePageGuard]
  },
  {
    path: 'assessPriceTemplateList',
    component: AssessPriceTemplateListComponent,
    data: {breadcrumb: '评估模版列表'},
  },
  {
    path: 'assessPriceTemplateEdit',
    component: AssessPriceTemplateComponent,
    data: {breadcrumb: '评估模版'},
    canDeactivate: [LeavePageGuard]
  },
  {
    path: 'assessTypeManageList',
    component: AssessTypeManageListComponent,
    data: {breadcrumb: '机型估价列表', keep: true}
  },
  {
    path: 'assessTypeManageEdit',
    component: AssessTypeManageComponent,
    data: {breadcrumb: '机型估价'},
    canDeactivate: [LeavePageGuard]
  },
  {
    path: 'loveClassSelect',
    component: LoveClassSelectComponent,
    data: {breadcrumb: '分类选择管理'}
  },
  {
    path: 'loveModelSelect',
    component: LoveModelSelectComponent,
    data: {breadcrumb: '机型选择管理'}
  },
  {
    path: 'loveModselectAdd',
    component: LoveModselectAddComponent,
    data: {breadcrumb: '机型选择配置'}
  },
  {
    path: 'loveOrderManage',
    component: LoveOrderManageComponent,
    data: {breadcrumb: '订单管理', keep: true}
  },
  {
    path: 'loveOrderDetails',
    component: LoveOrderDetailsComponent,
    data: {breadcrumb: '订单详情'}
  },
  {
    path: 'inspectionMachineList',
    component: InspectionMachineListComponent,
    data: {breadcrumb: '验机管理', keep: true}
  },
  {
    path: 'inspectedMachine',
    component: InspectedMachineComponent,
    data: {breadcrumb: '验机详情'}
  },
  {
    path: 'inspectedMachineEdit',
    component: InspectedMachineEditComponent,
    data: {breadcrumb: '验机报告'}
  },
  {
    path: 'loveMakeupCoupon',
    component: LoveMakeupCouponComponent,
    data: {breadcrumb: '加价券管理', keep: true}
  },
  {
    path: 'loveMakeupCouponEdit',
    component: LoveMakeupCouponEditComponent,
    data: {breadcrumb: '新增加价券'}
  },
  {
    path: 'loveMakeupCouponDetails',
    component: LoveMakeupCouponDetailsComponent,
    data: {breadcrumb: '加价券详情'}
  },
  {
    path: 'loveUserMakeupCoupon',
    component: LoveUserMakeupCouponComponent,
    data: {breadcrumb: '用户加价券管理'}
  },
  {
    path: 'loveMakeupPromotion',
    component: LoveMakeupPromotionComponent,
    data: {breadcrumb: '加价促销管理', keep: true}
  },
  {
    path: 'loveMakeupPromotionEdit',
    component: LoveMakeupPromotionEditComponent,
    data: {breadcrumb: '新增加价促销'}
  },
  {
    path: 'loveMakeupPromotionDetails',
    component: LoveMakeupPromotionDetailsComponent,
    data: {breadcrumb: '加价促销详情'}
  },
  {
    path: 'loveMakeupRecord',
    component: LoveMakeupRecordComponent,
    data: {breadcrumb: '加价促销记录'}
  },
  {
    path: 'loveMakeupAwardPrizes',
    component: LoveMakeupAwardPrizesComponent,
    data: {breadcrumb: '用户中奖信息'}
  },
  {
    path: 'love-luckdraw-list',
    component: LoveLuckdrawListComponent,
    data: {breadcrumb: '下单抽奖管理'}
  },
  {
    path: 'love-luckdraw-edit',
    component: LoveLuckdrawEditComponent,
    data: {breadcrumb: '下单抽奖信息'}
  },
  {
    path: 'love-luckdraw-record',
    component: LoveLuckdrawRecordComponent,
    data: {breadcrumb: '下单抽奖记录'}
  },
  {
    path: 'love-send-idol-list',
    component: LoveSendIdolListComponent,
    data: {breadcrumb: '回收送爱豆管理'}
  },
  {
    path: 'love-send-idol-edit',
    component: LoveSendIdolEditComponent,
    data: {breadcrumb: '回收送爱豆信息'}
  },
  {
    path: 'love-send-idol-details',
    component: LoveSendIdolDetailsComponent,
    data: {breadcrumb: '回收送爱豆详情'}
  },
  {
    path: 'recycleGiveIdouRecords',
    component: RecycleGiveIdouComponent,
    data: {breadcrumb: '回收送爱豆记录'}
  },
  // 回收基准价
  {
    path: 'modelBasePrice', component: ModelBasePriceComponent
  },
  // 更新价格
  {
    path: 'modelBasePriceEdit', component: ModelBasePriceEditComponent
  },

];

@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class LoveRecycManageRoutingModule {
}
